﻿using ERPU8WebApi.Until;
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Web;

namespace ERPU8WebApi.Dal
{
    public class DALRdrecord
    {
        SqlHelper s = new SqlHelper();

        public  DataTable GetHeadMaxID()
        {
            string sql = "SELECT top 1 * FROM rdrecord10 ORDER BY ID desc";
            DataTable dt = new DataTable();
            dt = s.ExecuteDataSetSql(sql, 0).Tables[0];
            return dt;
        }
        public  DataTable GetMaxBodyAutoID()
        {
            string sql = "SELECT top 1 * FROM rdrecords10 ORDER BY ID desc";
            DataTable dt = s.ExecuteDataSetSql(sql, 0).Tables[0];
            return dt;
        }

    }
}